package com.ourcraft.informationcollectionsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("Role")
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer roleId;
    private String roleName;
    private String roleDescription;
    private Integer roleAuthority;

    public Role(String roleName, String roleDescription, Integer roleAuthority){
        this.roleName = roleName;
        this.roleDescription = roleDescription;
        this.roleAuthority = roleAuthority;
    }
}
